﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace StudentsDreams.Game.View
{
    /// <summary>
    /// Логика взаимодействия для MainMenuView.xaml
    /// </summary>
    public partial class MainMenuView : UserControl
    {
        GameDefaultView gameDefault = new GameDefaultView();
        CommonSettingsView commonSetting = new CommonSettingsView();

        public MainMenuView()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Начать новую игру.
        /// </summary>
        private void OnBtnNewGameClick(object sender, RoutedEventArgs e)
        {
            this.Content = gameDefault;
        }
        /// </summary>
        ///  выбрать уровень.
        /// </summary>
        private void OnBtnSelectLevelClick(object sender, RoutedEventArgs e)
        {

        }

        /// </summary>
        /// Открыть настройки.
        /// </summary>
        private void OnBtnOptionsClick(object sender, RoutedEventArgs e)
        {
            this.Content = commonSetting;
        }

        /// </summary>
        /// Открыть описание игры.
        /// </summary>
        private void OnBtnAboutClick(object sender, RoutedEventArgs e)
        {

        }


        /// </summary>
        ///  Выйти из игры.
        /// </summary>
        private void OnBtnExitClick(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown();
        }

    }
}
